﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GoodSales_Stat.aspx.cs" Inherits="BalanceCenter_GoodSales_Stat" %>

<%@ Register TagPrefix="ShoveWebUI" Namespace="Shove.Web.UI" Assembly="Shove.Web.UI.2 For.NET 2.0" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>购物消费统计表</title>
    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <link href="../Style/main.css" rel="stylesheet" type="text/css" />

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

</head>
<body style="margin-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0;">
    <center>
        <form id="form1" runat="server">
        <font face="宋体">
            <table id="Table1" cellspacing="0" cellpadding="0" width="96%" border="0" align="center">
                <tr>
                    <td colspan="2">
                        商品名称：<asp:TextBox ID="tbGoodName" runat="server"></asp:TextBox>
                        &nbsp;&nbsp; 消费开始时间：
                        <asp:TextBox ID="StartTime" runat="server"></asp:TextBox>
                        &nbsp;&nbsp; 结束时间：<asp:TextBox ID="EndTime" runat="server"></asp:TextBox>
                        &nbsp;&nbsp;
                        <asp:Button ID="btnSearch" runat="server" Text=" 搜  索 " Width="90px" OnClick="btnSearch_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="center">
                        <br />
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="3">
                        <asp:DataGrid ID="g" runat="server" BackColor="#6CA4E4" CellPadding="5" Width="100%"
                            CellSpacing="1" BorderWidth="0px" AllowSorting="True" AutoGenerateColumns="False"
                            AllowPaging="True" ShowFooter="true" CssClass="gStyle" OnItemCreated="g_ItemCreated"
                            OnItemDataBound="g_ItemDataBound">
                            <FooterStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
                            <SelectedItemStyle HorizontalAlign="Center" Font-Bold="True" ForeColor="White"></SelectedItemStyle>
                            <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" CssClass="gHeader">
                            </HeaderStyle>
                            <ItemStyle CssClass="gItem" BackColor="White" />
                            <Columns>
                                <asp:BoundColumn DataField="GoodID" HeaderText="商品ID" Visible="false"></asp:BoundColumn>
                                <asp:BoundColumn DataField="GoodName" HeaderText="商品名称"></asp:BoundColumn>                                
                                <asp:BoundColumn DataField="GoodNo" HeaderText="卡号" Visible="false"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Password" HeaderText="密码" Visible="false"></asp:BoundColumn>
                                <asp:BoundColumn DataField="SalesDate" HeaderText="购买时间"></asp:BoundColumn>                                
                                <asp:BoundColumn DataField="PayTypeName" HeaderText="购买类型" ></asp:BoundColumn>                                
                                <asp:BoundColumn DataField="Price" HeaderText="单价"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Amount" HeaderText="购买数量"></asp:BoundColumn>
                                <asp:BoundColumn DataField="SumPrice" HeaderText="总额"></asp:BoundColumn>
                                
                                <%--<asp:TemplateColumn HeaderText="操作">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="hlDetail" runat="server" Target="CustomerIframe">详细</asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateColumn>--%>
                            </Columns>
                            <PagerStyle Visible="False" HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC">
                            </PagerStyle>
                        </asp:DataGrid>
                        <ShoveWebUI:ShoveGridPager ID="gPager" BorderWidth="0" CssClass="gStyle" BorderStyle="None"
                            runat="server" Width="100%" ShowSelectColumn="False" DataGrid="g" OnPageWillChange="gPager_PageWillChange"
                            OnSortBefore="gPager_SortBefore" AlternatingRowColor="White" HotColor="White"
                            GuiseColor="False" ClientNavigation="true" PageSize="10" />
                        <br>
                    </td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" style="vertical-align: middle;
                width: 800px;">
                <tr>
                    <td>
                        <iframe id="CustomerIframe" name="CustomerIframe" onload="document.all['CustomerIframe'].style.height=CustomerIframe.document.body.scrollHeight;document.all['CustomerIframe'].style.width=CustomerIframe.document.body.scrollWidth;"
                            frameborder="0" scrolling="no" style="width: 100%;" height="100%"></iframe>
                    </td>
                </tr>
            </table>
        </font>
        <br />
        <br />
        </form>
    </center>
</body>
</html>
